package oop.core.med;
import java.util.*;

import oop.core.Updateable;
import oop.core.entity.Avatar;
import oop.core.entity.Entity;
import oop.core.map.Location;
import oop.core.visitors.*;

public class InteractionItemMediator implements Updateable {

	private Avatar avatar;
	private Map<Location, InteractiveItemVisitable> map;
	
	public InteractionItemMediator(Avatar avatar, Map<Location, InteractiveItemVisitable> map){
		this.avatar = avatar;
		this.map = map;
	}

	public void interact(InteractiveItemVisitable item, Location desiredLocation){
		item.accept(new InteractiveItemVisitor(avatar.getOcc(), avatar.getDerStats(), avatar.getInventory(), desiredLocation, map));

	}
	public void update(){}
	
}


